package csdn;

import java.io.File;
import java.io.IOException;

public class Test2 {
    public static void main(String[] args) {
        String pathname="D:\\javacode\\javacode\\IO_1\\test_2.txt";//文件路径
        File file = new File(pathname);
        String pathname2="D:\\javacode\\javacode\\IO_1\\test_3.txt";//文件路径
        File file2 = new File(pathname2);
        if(file.mkdir()){
            System.out.println("创建一级目录成功");
        }
        if(file2.mkdir()){
            System.out.println("创建多级目录成功");
        }


    }
}
